package com.cazor.dgjq.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cazor.common.utils.DateUtils;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.cazor.dgjq.mapper.DgjqHisDataReqListMapper;
import com.cazor.dgjq.domain.DgjqHisDataReqList;
import com.cazor.dgjq.service.IDgjqHisDataReqListService;

/**
 * 酒泉历史数据长传记录Service业务层处理
 *
 * @author ruoyi
 * @date 2024-05-16
 */
@Service
public class DgjqHisDataReqListServiceImpl extends ServiceImpl<DgjqHisDataReqListMapper, DgjqHisDataReqList> implements IDgjqHisDataReqListService
{
    @Resource
    private DgjqHisDataReqListMapper dgjqHisDataReqListMapper;

    /**
     * 查询酒泉历史数据长传记录
     *
     * @param id 酒泉历史数据长传记录主键
     * @return 酒泉历史数据长传记录
     */
    @Override
    public DgjqHisDataReqList selectDgjqHisDataReqListById(Long id)
    {
        return dgjqHisDataReqListMapper.selectDgjqHisDataReqListById(id);
    }

    /**
     * 查询酒泉历史数据长传记录列表
     *
     * @param dgjqHisDataReqList 酒泉历史数据长传记录
     * @return 酒泉历史数据长传记录
     */
    @Override
    public List<DgjqHisDataReqList> selectDgjqHisDataReqListList(DgjqHisDataReqList dgjqHisDataReqList)
    {
        return dgjqHisDataReqListMapper.selectDgjqHisDataReqListList(dgjqHisDataReqList);
    }

    /**
     * 新增酒泉历史数据长传记录
     *
     * @param dgjqHisDataReqList 酒泉历史数据长传记录
     * @return 结果
     */
    @Override
    public int insertDgjqHisDataReqList(DgjqHisDataReqList dgjqHisDataReqList)
    {
        dgjqHisDataReqList.setCreateTime(DateUtils.getNowDate());
        return dgjqHisDataReqListMapper.insertDgjqHisDataReqList(dgjqHisDataReqList);
    }

    /**
     * 修改酒泉历史数据长传记录
     *
     * @param dgjqHisDataReqList 酒泉历史数据长传记录
     * @return 结果
     */
    @Override
    public int updateDgjqHisDataReqList(DgjqHisDataReqList dgjqHisDataReqList)
    {
        dgjqHisDataReqList.setUpdateTime(DateUtils.getNowDate());
        return dgjqHisDataReqListMapper.updateDgjqHisDataReqList(dgjqHisDataReqList);
    }

    /**
     * 批量删除酒泉历史数据长传记录
     *
     * @param ids 需要删除的酒泉历史数据长传记录主键
     * @return 结果
     */
    @Override
    public int deleteDgjqHisDataReqListByIds(Long[] ids)
    {
        return dgjqHisDataReqListMapper.deleteDgjqHisDataReqListByIds(ids);
    }

    /**
     * 删除酒泉历史数据长传记录信息
     *
     * @param id 酒泉历史数据长传记录主键
     * @return 结果
     */
    @Override
    public int deleteDgjqHisDataReqListById(Long id)
    {
        return dgjqHisDataReqListMapper.deleteDgjqHisDataReqListById(id);
    }
}
